package com.amigo.online.provider.ffmpeg.feignservice;

import com.amigo.online.common.core.response.Response;
import com.amigo.online.provider.ffmpeg.config.FigenConfig;
import com.amigo.online.provider.ffmpeg.feignservice.impl.VideoConsumerFeignServiceImpl;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author:LiangWu
 * @Date: 2019/6/25 18:54
 * @Description:
 */
@FeignClient(name = "amigo-online-consumer-video",configuration = FigenConfig.class,fallback = VideoConsumerFeignServiceImpl.class)
public interface VideoConsumerFeignService {
    @Headers("Content-Type: multipart/form-data")
    @PostMapping("/video/upload/video")
    ResponseEntity<Response> updateVideoWaterMarkUrl(@RequestPart(value = "files") MultipartFile[] files);

}
